<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<%=path%>/js/util.js"></script>
<script language="javascript" src="<%=path%>/js/SyncCommon.js"></script>
	<script language="javascript" src="<%=path%>/application/js/treeSelect.js"></script>
</head>
<body>
<html:form styleId="yfAppointTaskForm" action="addYfAppointTask.do?method=addYfAppointTask" onsubmit="return save();">
	<input type ="hidden" name="projectid" id="projectid" value="0" />
	<input type ="hidden" name="id" id="id" value="${yfAppointTaskForm.id}"/>
	<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
		    <tr>
		      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">研发辅助 &gt; 任务指派 &gt; 新增</td>
		    </tr>
       </table>
	
	   
	    <table cellspacing="1" cellpadding="0" width="98%" align="center"  border="0" class="bgcolor2 margb5">
	           <tr>
		       <td colspan="4" align="left" class="bkuang zi13b bgcolor2 padl5">任务指派信息</td>
		    </tr>
        <tr class="bgcolor">
	   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfappointtask.entity.yfappointtask.createpage.taskBelong" bundle="yfappointtask"/>：<font color="red">*&nbsp;</font></td>
	   <td width="32%"  align="left" class="pad2 zi13" >
	                               				 <input flag="true" onClick="openTree('divTree','user_bm_o','${pageContext.request.contextPath}/common/treeSelect.jsp?iid=taskBelong&iname=rname',this)"   maxlength="50" valid="required" errMsg="请选择被指派人！" type="text" id="rname" name="rname"/>
		         		                       		  <input type="hidden" value="0" id="taskBelong" name="taskBelong" size="80" />
		         		                       		  	<div id="divTree"
			style="position: absolute; background: #FFFFFF; left: 1px; top: 1px; height =300; width: 253px; display: none"></div>
		         		                       		  
	  </td>
	   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfappointtask.entity.yfappointtask.createpage.completeDate" bundle="yfappointtask"/>：<font color="red">*&nbsp;</font></td>
	   <td width="32%"  align="left" class="pad2 zi13">
	                               				  <input flag="true" readonly="true" valid="required" errMsg="请输入任务完成时间！" type="text" readonly="true"   name="completeDateStr" id="completeDateStr" readonly="true"  onclick="popUpCalendarDlg(this)" />
		         		                       		  
	   </td>
        </tr>
        
         <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfappointtask.entity.yfappointtask.createpage.taskContent" bundle="yfappointtask"/>：<font color="red">*&nbsp;</font></td>
	              <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               	<textarea rows="6" cols="60" id="taskContent" name="taskContent" flag="true"  valid="required|limitLength" max="1000" errMsg="请输入任务内容！|任务内容输入长度不能超过1000个汉字"></textarea>长度不超过1000个字		
		         		                       		  
	         </td>
         </tr>
         <!-- 
           <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">意见：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               	<textarea rows="6" cols="60"  id="opinion" name="opinion"></textarea>		
		         		                       		  
	         </td>
	  
	  
         </tr>
         
          <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">执行结果：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               	<textarea rows="6" cols="60"  id="exeResult" name="exeResult"></textarea>		
		         		                       		  
	         </td>
	  
	  
         </tr>
         
        <tr class="bgcolor">
         
           <td width="18%" align="right" class="zi13">评价意见：</td>
	                   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	                               	<textarea rows="6" cols="60"  id="remark" name="remark"></textarea>		
		         		                       		  
	         </td>
	  
	  
         </tr>
         
      
 
        <tr class="bgcolor">
	  
 
	   <td width="18%" align="right" class="zi13"><bean:message key="com.application.yfappointtask.entity.yfappointtask.createpage.evaluate" bundle="yfappointtask"/>：</td>
	   <td width="32%"  align="left" class="pad2 zi13" colspan="3">
	         		  		  <ssh:select propertyName="evaluate" pid="EVALUATE" type="1" defaultName="${evaluate}"/>
		  
	  </td>

        </tr>
  -->
  <tr>
					    <td colspan="4">
		                    <iframe width="100%" height="150px" onload="this.height=show_attachment.document.body.scrollHeight"
							src="<%=path%>/queryAttachment.do?method=queryAttachment&fid=${yfAppointTaskForm.id}&type=10013"
											; scrolling="no" frameborder="0" name="show_attachment"
											id="show_attachment"></iframe>       
					    </td>
					  </tr>		
    </table> 
	
	

		<p><p><p>
	
       <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
        <td align="center">
		<input class="buttonbg" id="but_save" style="cursor:hand" type="submit" value="<bean:message key='com.manager.common.yfappointtask.save' bundle="yfappointtask"/>" name="but_save" />
		  &nbsp;&nbsp;&nbsp;
		    		<input class="buttonbg" id="but_save2" style="cursor:hand" type="button" value="指派" onclick="return returnSubmits()"  name="but_save2" />
						&nbsp;&nbsp;&nbsp;
	     <input class="buttonbg" id="but_return"  style="cursor:hand"  type="button" value="<bean:message key='com.manager.common.yfappointtask.return' bundle="yfappointtask"/>" name="but_return" onClick="javascript:history.go(-1);"/>
		 </td>
  </tr>
</table>

</html:form>
</body>
</html>


<script>

function save(){
   if(validateForm(document.forms[0],'Y'))
   {
	return true;
    }else{
	return false;
    }
}

//提交审核
function returnSubmits(){
    if(validateForm(document.forms[0],'Y'))
	{
	    document.forms[0].action="submitWorkFlowYfAppointTask.do?method=submitWorkFlowYfAppointTask&submitType=add";
	    document.forms[0].submit();
		return true;
		
	}else{
	    return false;
	}
	
}
</script>





